package model;

/**
 * Created by yvdedu.com on 2016/9/26.
 */
public class Chapter {
    private int id;
    private int book_id;
    private int chapter_order;
    private String name;
    private String time;
    private String path;
    private String role;

    public Chapter(int id, int book_id, int chapter_order, String name, String time, String path, String role) {
        this.id = id;
        this.book_id = book_id;
        this.chapter_order = chapter_order;
        this.name = name;
        this.time = time;
        this.path = path;
        this.role = role;
    }

    public int getId() {
        return id;
    }

    public int getBook_id() {
        return book_id;
    }

    public String getName() {
        return name;
    }

    public String getPath() {
        return path;
    }

    public String getRole() {
        return role;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setBook_id(int book_id) {
        this.book_id = book_id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public void setRole(String role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "Chapter{" +
                "id=" + id +
                ", book_id=" + book_id +
                ", chapter_order=" + chapter_order +
                ", name='" + name + '\'' +
                ", time='" + time + '\'' +
                ", path='" + path + '\'' +
                ", role='" + role + '\'' +
                '}';
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getChapter_order() {
        return chapter_order;
    }

    public void setChapter_order(int chapter_order) {
        this.chapter_order = chapter_order;
    }
}
